/**
 * Object.assign(obj,obj1,obj2...)
 * 浅复制
 */
Object.myAssign = (target, ...source) =>{
  let res = Object(target);
  source.forEach((each) => {
    if(each!==null){
      for(let key in each){
        if(each.hasOwnProperty(key)){
          res[key] = each[key]
        }
      }
    }
  })
  return res;
}

Object.myAssign = function(obj,...objList) {
  obj = Object(obj);
  objList.forEach(item => {
    item && Object.keys(item).forEach(key => obj[key] = item[key])
  })
  return obj
}